import 'config_item.dart';
import 'configs.dart';

class DeviceConfigs extends Configs {
  late final maxDeviceCount = ConfigItem(
    name: '最大设备数量',
    box: Configs.box,
    key: 'device.maxDeviceCount',
    defValue: 100,
  );
  late final canModifyDevice = ConfigItem(
    name: '允许编辑设备信息',
    box: Configs.box,
    key: 'device.canModifyDevice',
    defValue: true,
  );
  late final canDeleteDevice = ConfigItem(
    name: '允许删除设备信息',
    box: Configs.box,
    key: 'device.canDeleteDevice',
    defValue: true,
  );

  @override
  void reset() {
    maxDeviceCount.reset();
    canModifyDevice.reset();
    canDeleteDevice.reset();
  }
}
